﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Configuration;

namespace TesterCRM.Configuration
{
    internal class ProjectElement : ConfigurationElement
    { 
        [ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
        public string Name
        {
            get
            {
                return ((string) (base["name"]));
            }
            set
            {
                base["name"] = value;
            }
        }

        [ConfigurationProperty("enabled", DefaultValue = "false", IsKey = false, IsRequired = true)]
        public string Enabled
        {
            get
            {
                return ((string)(base["enabled"]));
            }
            set
            {
                base["enabled"] = value;
            }
        }

        [ConfigurationProperty( "crmVersion", DefaultValue = "", IsKey = false, IsRequired = false )]
        public string CrmVersion
        {
            get
            {
                return ((string)(base["crmVersion"]));
            }
            set
            {
                base["crmVersion"] = value;
            }
        }

        [ConfigurationProperty("type")]
        public string Type
        {
            get
            {
                return ((string)base["type"]);
            }
            set
            {
                base["type"] = value;
            }
        }

        [ConfigurationProperty("comment", DefaultValue = "", IsKey = false, IsRequired = false)]
        public string Comment
        {
            get
            {
                return ((string)(base["comment"]));
            }
            set
            {
                base["comment"] = value;
            }
        }
    }
}
